/*
 * @Author: funlee
 * @Email: i@funlee.cn
 * @Date: 2018-06-21 10:14:27
 * @Description: action 对象必须有一个名为 type 的字段，代表action对象的类型
 */
import * as ActionTypes from './ActionTypes.js';
import AppDispatcher from './AppDispatcher';

export const increment = (counterCaption) => {
  AppDispatcher.dispatch({
    type: ActionTypes.INCREMENT,
    counterCaption: counterCaption
  })
}

export const decrement = (counterCaption) => {
  AppDispatcher.dispatch({
    type: ActionTypes.DECREMENT,
    counterCaption: counterCaption
  })
}
